package com.boang.time;

import java.time.LocalDate;

/*
  @author: 13813
  @date: 2024/11/22 10:09
*/
public class LocalDateDemo {
    public static void main(String[] args) {
        //当前时间
        LocalDate now = LocalDate.now();
        System.out.println(now);
        //指定时间
        LocalDate localDate = LocalDate.of(2025, 1, 1);
        System.out.println(localDate);
    }
}
